package cn.edu.zzuli.utils;

/**
 * Created by CaoShi on 2020/2/15 20:50
 */
public class ResultInfo {

    private Integer code = 0;
    private String msg = "";

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultInfo() {
    }

    public ResultInfo(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static final ResultInfo DELETE_SUCCESS = new ResultInfo(1, "删除成功");
    public static final ResultInfo DELETE_ERROR = new ResultInfo(0, "删除失败");

    public static final ResultInfo SAVE_SUCCESS = new ResultInfo(1, "保存成功");
    public static final ResultInfo SAVE_ERROR = new ResultInfo(0, "保存失败");

    public static final ResultInfo UPDATE_SUCCESS = new ResultInfo(1, "更新用户成功");
    public static final ResultInfo UPDATE_ERROR = new ResultInfo(0, "更新用户失败");
}
